package com.example.demo;

import com.juphoon.oauth.core.listener.AuthenticationListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author rongbin.huang
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.juphoon.oauth", "com.example.demo"})
@RestController
public class DemoApplication {

    @Autowired
    private AuthenticationListener authenticationListener;

    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);

    }

    @RequestMapping("/test")
    public String test() {
        return "test";
    }

    @RequestMapping("/app/register")
    public String register() {
        return "test";
    }

    @RequestMapping("/test2")
    public String test2() {
        return "sssssss";
    }

    @RequestMapping("/test3")
    public String test3() {
        return "sssssss";
    }

    @RequestMapping("/test4")
    public String test4() {
        return "sssssss";
    }

}
